<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--五种数据类型-->
<!-- -->

<script>
    // 数字型   整数 小数
    var n = 10.0;
    console.log("n的类型是:"+(typeof n));
    var s = '我是一个字符串';
    console.log("s的类型是:"+(typeof s));
    var flag = true;
    console.log("flag的类型是:"+(typeof flag));
    var arr;
    console.log("arr的类型是:"+(typeof arr))
    var obj = new Object();
    console.log("obj类型:"+(typeof obj));
    obj = null;
    console.log("obj赋值null之后:"+(typeof obj));

</script>

</body>
</html>